import { http } from "@/utils/luch-request/service";

enum Api {
	questionList = "/v1/question/list",
	questionDetail = "/v1/question/detail",
	quertionUp = "/v1/question-log/submit",
	quertionLogs = "/v1/question-log/list",
	quertionLogDetail = "/v1/question-log/detail",
}

/**
 * @description: index api
 */
const indexApi = {

	getQuestionList(params = {}) {
	  return http.get(Api.questionList, { params });
	},

	getQuestionDetail(params = {}) {
	  return http.get(Api.questionDetail, { params });
	},

	getQuestionLogs(params = {}) {
	  return http.get(Api.quertionLogs, { params });
	},
	getQuestionLogDetail(params = {}) {
	  return http.get(Api.quertionLogDetail, { params });
	},

	runQuertionUp(params = {}) {
	  return http.post(Api.quertionUp, params);
	},

};
export default indexApi;
